package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @className: CouponUSer
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 * @date: 2025/9/12 10:02
 */
@Data
public class CouponUser {
    private Integer id;//领取记录表
    private Integer couponsId;//优惠卷表id
    private Integer userId;//用户表
    private String state;//适用状态
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date date;//领取时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date usageTiem;//使用时间
    private String couponName;//优惠卷名称
    private String couponType;//优惠卷类型
    private String applyType;//适用类型

    private Integer discountValue;//面值
    private String receive;//领取方式
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date receiveDate;//活动开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date usageTime;//活动结束时间
    private Integer num;//限量

    private String name;//适用类型
    private String phone;//适用类型

}
